Skip to content

Add Kubernetes replace directives#5236

Merged
thardeck merged 1 commit into
mainfrom
implement_5231_add_k8s_replace
Jun 5, 2026
Merged

Add Kubernetes replace directives#5236
thardeck merged 1 commit into
mainfrom
implement_5231_add_k8s_replace

Conversation

@thardeck

@thardeck thardeck commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Add replace directives for Kubernetes modules in go.mod and integrationtests/go.mod to align module resolution with main's Kubernetes versions. This prevents CI failures caused by missing Kubernetes replace statements when running go mod tidy and keeps transitive k8s module versions consistent.

Refers #5231

to prevent issues with bumping k8s libraries.
@thardeck thardeck self-assigned this Jun 5, 2026
Copilot AI review requested due to automatic review settings June 5, 2026 06:11
@thardeck
thardeck requested a review from a team as a code owner June 5, 2026 06:11
@thardeck thardeck added this to Fleet Jun 5, 2026
@thardeck thardeck moved this to 👀 In review in Fleet Jun 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds explicit replace directives for a set of Kubernetes (k8s.io/*) modules in both the root module and the integrationtests module to ensure transitive Kubernetes dependencies resolve consistently (and avoid go mod tidy / CI drift) to the repository’s intended Kubernetes versions.

Changes:

  • Add k8s.io/* replace directives in the root go.mod to pin transitive Kubernetes modules to v0.36.1 / v1.36.1.
  • Add the same k8s.io/* replace directives in integrationtests/go.mod to keep integration test module resolution aligned with the root module.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
go.mod Adds Kubernetes module replace directives to enforce consistent transitive k8s versions in the main module.
integrationtests/go.mod Mirrors the Kubernetes replace directives to keep the integration test module’s dependency resolution consistent.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thardeck
thardeck merged commit 17e9248 into main Jun 5, 2026
23 checks passed
@thardeck
thardeck deleted the implement_5231_add_k8s_replace branch June 5, 2026 07:42
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Fleet Jun 5, 2026
@kkaempf kkaempf added this to the v2.15.0 milestone Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants